/*
 * Copyright 2024 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.auth.application.user.dto;

import com.lap.framework.dto.page.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <strong> 用户查询规范(Specification) </strong>
 *
 * <ol>
 *   <li>没有业务逻辑的查询，不需要使用转换，使用 spec 模式。
 *   <li>存在业务逻辑，在应用层定义queryCmd，然后转换到 spec 时候，处理业务逻辑。
 * </ol>
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "用户分页过滤条件")
public class QueryUserPageQuery extends PageRequest {

  @Schema(description = "用户名")
  private String username;

  @Schema(description = "用户姓名")
  private String fullName;

  @Schema(description = "用户邮箱")
  private String email;

  @Schema(description = "用户状态")
  private Integer status;

  @Schema(description = "岗位Id集合")
  private List<Integer> jobList;

  @Schema(description = "组织id集合")
  private List<Integer> orgList;
}
